package com.lesso.lpq.sunflower.infra.assembler;

import com.lesso.lpq.sunflower.model.EmployeeAttendanceRule;
import com.lesso.lpq.sunflower.pojo.dto.EmployeeAttendanceRuleDTO;
import com.lesso.lpq.sunflower.pojo.vo.EmployeeAttendanceRuleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName : EmployeeAttendanceRuleAssembler
 * @Description :
 * @Author : 罗培棋
 * @Date: 2025-07-05 17:19
 */
@Mapper
public interface EmployeeAttendanceRuleAssembler {
    EmployeeAttendanceRuleAssembler INSTANCE = Mappers.getMapper(EmployeeAttendanceRuleAssembler.class);

    EmployeeAttendanceRule dtoToEntity(EmployeeAttendanceRuleDTO dto);

    EmployeeAttendanceRuleVO entityToVO(EmployeeAttendanceRule employeeAttendanceRule);

    List<EmployeeAttendanceRuleVO> entityListToVOList(List<EmployeeAttendanceRule> employeeAttendanceRules);
}
